#ifndef    __BSP_FAN_H__
#define    __BSP_FAN_H__
#include "gd32f3x0.h"

#define FAN_GPIO_PORT         GPIOB
#define FAN_GPIO_CLK          RCU_GPIOB
#define FAN_GPIO_PIN          GPIO_PIN_10
#define TIM1_CH2_AF		    GPIO_AF_2

#define FAN_TIM           		TIMER1
#define FAN_TIM_CLK       		RCU_TIMER1

#define FAN_TIM_IRQn			TIMER1_IRQn
#define FAN_TIM_IRQHandler     TIMER1_IRQHandler


void TIM1_Fan_Configuration(void);
void FanControl(uint8_t level);

#endif